package com.example.controller;

import com.example.api.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/test")
public class TestController {
    @Reference
    private UserService userService;

    @RequestMapping("/getUserInfo")
    public String getUserInfo() {
        return userService.getUserInfo();
    }
}
